package com.cc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.cc.User;
import com.dy.cc.confirmOrder;
import com.kaoshi.common.config.Result;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【user】的数据库操作Mapper
* @createDate 2024-11-28 10:44:30
* @Entity com.cc.domain.User
*/
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where id=#{uid}")
    List<User> findAll(User user,Integer uid);

    @Select("select * from user where id=#{uid}")
    List<User> find(User user,Integer uid);


    @Update("update user set clear_status= 0 where id=#{id} ")
    void update1(User user);
}




